package com.ibangnuo.framework.newLandpay.impl.response;

import com.ibangnuo.framework.newLandpay.api.NewLandpayResponse;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2020-01-11 14:40
 */
@Data
@ToString
@NoArgsConstructor
public class NewLandMercSearchResponse implements NewLandpayResponse {
    private String logNo;//流水号
    private String msgCd;//返回码
    private String msgDat;//返回信息
    private String mercId;//商户识别号
    private String signValue;//签名域
    private String checkFlag;//审核结果
    private String chekMsg;//商户备注
    private String key;//商户密钥
    private String mercRemark;
    private String body;
    private List<NewLandMercSearch> rec;
    @Override
    public boolean isSuccess() {
        return StringUtils.isNotEmpty(msgCd);
    }

    @Override
    public String code() {
        return this.msgCd;
    }
}
